class realAccess:
    def __init__(self, initval=None, name="var"):
        self.val = initval
        self.name = name

    def __get__(self,obj,objtype):
        print("Getting:", self.name)
        return self.val

    def __set__(self, obj, val):
        print("updateing", self.name)
        self.val = val


class myClass:
    x = realAccess(10, "var'x'")
    y = 5


m = myClass()
n = realAccess("var'y'")
# print(m.x)
# m.x = 20
# print(m.x)
# print(m.y)
print(n.val)
